package com.boang.entity;

/*
  @author: 13813
  @date: 2024/11/20 9:26
*/
public class CreditAccount extends Account implements IRepay{
    public int ceiling; //透支额度

    /*
        public CreditAccount(){
           super();
        }
     */
    public CreditAccount(String cardNo, String passwd, int balance) {
        super(cardNo, passwd, balance);
    }

    @Override
    public void deposit(int money) {
        int total = this.balance + ceiling;
        total -= money;
    }

    @Override
    public void loan() {
        this.ceiling = 1000;
    }
}
